package com.entity;

import java.util.Set;

public class Teacher {
	private Integer id;
	private String name;
	private Integer age;
	private String sex;
	private String email;
	private String address;
	//用集合时一般用接口
	private Set<Student> students;
	private Set<Course> courses;
	private Set<Grade> comments;
	
	public Teacher() {
		
	}
	

	public Teacher(String name, Integer age, String sex, String email, String address, Set<Student> students,
			Set<Course> courses, Set<Grade> comments) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.email = email;
		this.address = address;
		this.students = students;
		this.courses = courses;
		this.comments = comments;
	}


	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	

	public Set<Student> getStudents() {
		return students;
	}


	public void setStudents(Set<Student> students) {
		this.students = students;
	}


	public Set<Course> getCourses() {
		return courses;
	}


	public void setCourses(Set<Course> courses) {
		this.courses = courses;
	}


	public Set<Grade> getComments() {
		return comments;
	}


	public void setComments(Set<Grade> comments) {
		this.comments = comments;
	}


	@Override
	public String toString() {
		return "Teacher [id=" + id + ", name=" + name + ", age=" + age + ", sex=" + sex + ", email=" + email + "]";
	}
	
}
